import jwt
from django.conf import settings

token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJlbWFpbCI6InljbWtrd2tAZ21haWwuY29tIiwiZXhwIjoxNzUwNzg0NjE3LCJpYXQiOjE3NTA3ODEwMjd9.yfLc5lEZtmAnpjB2A_3N0zO68DuCYqvZuV2G5aMfmOo"
try:
    decoded = jwt.decode(token, key=settings.SECRET_KEY, algorithms=['HS256'])
    print(decoded)
except Exception as e:
    print("错误：", str(e))